/**
 *
 */
package com.ybkj.daijia.common;

import java.util.List;
import java.util.Map;


public class Result<T> {

    private boolean success;

    private String message;

    private List<T> data;

    private String errorcode;

    private Object object;

    private Long countnum;

    private T result;

    private Long longValue;

    private Map<String, Object> map;

    public Result() {
        super();
    }

    public Result(boolean success, String message) {
        super();
        this.success = success;
        this.message = message;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public String getErrorcode() {
        return errorcode;
    }

    public void setErrorcode(String errorcode) {
        this.errorcode = errorcode;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }

    public Long getCountnum() {
        return countnum;
    }

    public void setCountnum(Long countnum) {
        this.countnum = countnum;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }

    public Long getLongValue() {
        return longValue;
    }

    public void setLongValue(Long longValue) {
        this.longValue = longValue;
    }

    public Map<String, Object> getMap() {
        return map;
    }

    public void setMap(Map<String, Object> map) {
        this.map = map;
    }

    @Override
    public String toString() {
        return "Result{" +
            "success=" + success +
            ", message='" + message + '\'' +
            ", data=" + data +
            ", errorcode='" + errorcode + '\'' +
            ", object=" + object +
            ", countnum=" + countnum +
            ", result=" + result +
            ", longValue=" + longValue +
            ", map=" + map +
            '}';
    }
}
